﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/MasterPage_Base.master" AutoEventWireup="true" CodeFile="WebNavModify.aspx.cs" Inherits="System_Page_WebNavModify" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    网站菜单编辑
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">

    <table>
        <tr>
            <td>父级</td>
            <td>
                <asp:DropDownList ID="ddl_Parent" runat="server" Width="400"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>菜单名称</td>
            <td>
                <asp:TextBox ID="txt_Title" runat="server" Text="" Width="400" CssClass="TextBox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>菜单编码</td>
            <td>
                <asp:TextBox ID="txt_Code" runat="server" Text="" Width="400" CssClass="TextBox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>排序</td>
            <td>
                <asp:TextBox ID="txt_OrderNo" runat="server" Text="" Width="400" CssClass="TextBox" MaxLength="2"></asp:TextBox>
                <script>
                    $(function () {
                        $('#<%=txt_OrderNo.ClientID%>').change(function () {
                            var v = parseInt($(this).val());
                            if(!v)
                            {
                                v = 0;
                            }
                            $(this).val(v);
                        });
                    });
                </script>
            </td>
        </tr>
        <tr>
            <td class="td1">状态
            </td>
            <td class="td2">
                <asp:RadioButtonList ID="radio_Valid" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Text="启用" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="禁用" Value="0"></asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>

        <tr>
            <td colspan="2" style="text-align: right; padding-right: 10px; padding-top: 20px;">
                <asp:Button ID="btn_Submit" runat="server" Text="提交" CssClass="Button" ValidationGroup="Check"
                    OnClick="btn_Submit_Click" />
                <input type="button" value="返回" class="Button" onclick="window.location.href = 'WebNavList.aspx'" />
            </td>
        </tr>
    </table>
</asp:Content>
